package com.telit.firecommand.model.cityVisualization;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


/**
 * 查询物资统计model
 *
 * @author yuezhuang
 * @since 2023-03-20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "QryResourceCountModel", description = "查询物资统计model")
public class QryResourceCountModel implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "分类名称")
    private String catName;

    @ApiModelProperty(value = "分类级别 1-一级分类 2-二级分类")
    private Integer rank;

    @ApiModelProperty(value = "数量")
    private Integer totalCount;

    @ApiModelProperty(value = "子分类")
    private List<QryResourceCountModel> child;

}
